Syntax:
GetVarCount()
Description:
Returns the total number of variables created by the current task. (Note:
this function returns valid results only from within a running task)
Parameter Description
(no parameters)
Example:
Sub
Main
' Display the names of all the AutoMate variables and their
' contents
Dim iTotalVariables As Integer
iTotalVariables = GetVarCount()
For iIndex=0 to iTotalVariables
MsgBox GetVar(iIndex)
MsgBox GetVarValueByVarName(GetVar(iIndex))
Next iIndex
End Sub
See Also: